import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		userinfo: null,
		longitudeAndLatitude: null,
		tel: null,
		// 即时通讯的usersig用于登录
		imsig: null,
		
		// 存储获取手机号码的功能的信息
		session_key: null,
	},
	mutations: {
		// 存储个人信息
		storePersonalInformation(state, options) {
			state.userinfo = options;
		},
		// 存储经纬度
		storeLongitudeAndLatitude(state, options) {
			state.longitudeAndLatitude = options;
		},
		storeTel(state, options) {
			state.tel = options;
		},
		// 即时通讯的usersig用于登录
		storeImsig(state, options){
			state.imsig = options;
		},
		storeSessionKey(state, options){
			state.session_key = options;
		},
	},
})
export default store
